from faker import Faker


class MyFaker:

    def __init__(self,):
        self.data_creater = Faker("zh_CN")

    def call_funtion(self,input_type:str):
        if hasattr(self.data_creater, input_type):
            return getattr(self.data_creater, input_type)


if __name__ == '__main__':
    f = MyFaker()
    fun = f.call_funtion('job')
    print(fun())
